<template>
  <div class="daybase">
    <div class="head">
      <div class="newday">
        <div class="new">
          <p>{{getDate}}</p>
          <div>{{time}}</div>
        </div>
      </div>
      <div class="desc">
        <div class="left">
          <h2>每日歌曲推荐</h2>
          <p>根据你的音乐口味生成，每天6:00更新</p>
        </div>
      </div>
    </div>
    <div class="center">
      <div class="bofang"
           @click="allPlay()">
        <img src="~assets/img/playmusic/bofang.svg"
             alt="">
        播放全部
      </div>
    </div>
  </div>
</template>

<script>
import { detailMixin } from "assets/common/mixin"
import { allplayMixin } from 'mixin/allplayMixin'
export default {
  name: 'DayBaseInfo',
  mixins: [detailMixin, allplayMixin]
}
</script>

<style scoped>
.daybase {
  width: 100%;
}
.head {
  width: 100%;
  display: flex;
}
.head .newday {
  display: inline-block;
  width: 200px;
  height: 200px;
  text-align: center;
}
.newday .new {
  padding: 10px;
  width: 200px;
  height: 200px;
  background: #00aa85;
  text-align: center;
}
.new div {
  font-size: 89px;
  color: #fff;
}
.new p {
  font-size: 24px;
  color: #fff;
  margin-top: 10px;
}
.desc {
  height: 200px;
  background: linear-gradient(to right, #16181c, #19192b);
  flex: 1;
}
.desc .left {
  width: 60%;
  height: 100%;
  padding-left: 30px;
  line-height: 100px;
  position: relative;
  color: #fff !important;
}
.left p {
  position: absolute;
  bottom: 40px;
  color: #fff;
}
.center .bofang {
  width: 140px;
  padding: 5px 10px;
  margin: 20px 0;
  color: #fff;
  border-radius: 10px;
  margin-right: 10px;
  cursor: pointer;
  background: #00aa85;
}
.center img {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
}
</style>
